<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BOSS Afterburner: ChainLoader.cxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BOSS Afterburner
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ChainLoader_8cxx_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ChainLoader.cxx</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ChainLoader_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ChainLoader_8h.html">File/ChainLoader.h</a>&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Draw_8h.html">Functions/Draw.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Hist_8h.html">Functions/Hist.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Settings_8h.html">Globals/Settings.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;TList.h&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;TTimeStamp.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;iomanip&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceBOSS__Afterburner.html">BOSS_Afterburner</a>;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classChainLoader.html#ad93ba90c4a626e758b98a29f4729bf70">   13</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classChainLoader.html#ad93ba90c4a626e758b98a29f4729bf70">ChainLoader::BookAddresses</a>(<span class="keywordtype">bool</span> print_branches, <span class="keywordtype">bool</span> print_averages)</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;{</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;  <span class="keywordflow">if</span>(!fChain.GetNbranches()) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;  TIter    next(fChain.GetListOfBranches());</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;  TObject* obj = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="keywordflow">if</span>(print_branches)</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  {</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;Tree \&quot;&quot;</span> &lt;&lt; fChain.GetName() &lt;&lt; <span class="stringliteral">&quot;\&quot; (&quot;</span> &lt;&lt; fChain.GetEntries() &lt;&lt; <span class="stringliteral">&quot; entries)&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    cout &lt;&lt; fChain.GetTitle() &lt;&lt; endl;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;   &quot;</span> &lt;&lt; setw(18) &lt;&lt; left &lt;&lt; <span class="stringliteral">&quot;BRANCH NAME&quot;</span>;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keywordflow">if</span>(print_averages) cout &lt;&lt; setw(12) &lt;&lt; right &lt;&lt; <span class="stringliteral">&quot;MEAN&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    cout &lt;&lt; endl;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  }</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keywordflow">while</span>((obj = next()))</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">string</span> type(obj-&gt;GetTitle());</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordflow">if</span>(print_branches)</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;      cout &lt;&lt; <span class="stringliteral">&quot;   &quot;</span> &lt;&lt; setw(18) &lt;&lt; left &lt;&lt; type;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;      <span class="keywordflow">if</span>(print_averages) cout &lt;&lt; setw(12) &lt;&lt; right &lt;&lt; ComputeMean(&amp;fChain, obj-&gt;GetName());</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span>(type.find(<span class="charliteral">&#39;[&#39;</span>) != string::npos)</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    {</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;      <span class="keywordflow">if</span>(print_branches) cout &lt;&lt; <span class="stringliteral">&quot; (not loaded)&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      <span class="keywordflow">continue</span>; </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordflow">if</span>(print_branches) cout &lt;&lt; endl;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">switch</span>(type.back())</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;B&#39;</span>: SetAddress(obj, fMap_B); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;b&#39;</span>: SetAddress(obj, fMap_b); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;S&#39;</span>: SetAddress(obj, fMap_S); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;s&#39;</span>: SetAddress(obj, fMap_s); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;I&#39;</span>: SetAddress(obj, fMap_I); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;i&#39;</span>: SetAddress(obj, fMap_i); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;F&#39;</span>: SetAddress(obj, fMap_F); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;D&#39;</span>: SetAddress(obj, fMap_D); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;L&#39;</span>: SetAddress(obj, fMap_L); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;l&#39;</span>: SetAddress(obj, fMap_l); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      <span class="keywordflow">case</span> <span class="charliteral">&#39;O&#39;</span>: SetAddress(obj, fMap_O); <span class="keywordflow">break</span>;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      <span class="keywordflow">default</span>: cout &lt;&lt; <span class="stringliteral">&quot;ERROR: Unable to book address for branch \&quot;&quot;</span> &lt;&lt; type &lt;&lt; <span class="stringliteral">&quot;\&quot;&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  }</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keywordflow">if</span>(print_branches) cout &lt;&lt; endl;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classChainLoader.html#a45b885862b28f642fcfefd165be5d150">   63</a></span>&#160;TH1F* <a class="code" href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">ChainLoader::Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* branchX, <span class="keyword">const</span> Int_t nBinx, <span class="keyword">const</span> <span class="keywordtype">double</span> x1, <span class="keyword">const</span> <span class="keywordtype">double</span> x2,</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                        Option_t* option, <span class="keyword">const</span> <span class="keywordtype">bool</span> save, <span class="keyword">const</span> TString&amp; logScale, <span class="keyword">const</span> <span class="keywordtype">char</span>* cut)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;{</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="comment">// * Draw histogram * //</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">char</span>* histName = Form(<span class="stringliteral">&quot;hist_%s&quot;</span>, branchX);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  Draw(Form(<span class="stringliteral">&quot;%s&gt;&gt;%s(%i,%f,%f)&quot;</span>, branchX, histName, nBinx, x1, x2), cut, option, save, logScale);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <span class="comment">// * Modify histogram * //</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  TH1F* hist = (TH1F*)gDirectory-&gt;Get(histName);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  hist-&gt;SetTitle(Form(<span class="stringliteral">&quot;#it{%s} branch of the \&quot;%s\&quot; tree&quot;</span>, branchX, fChain.GetName()));</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="keywordflow">if</span>(!logScale.Contains(<span class="stringliteral">&quot;y&quot;</span>) &amp;&amp; !logScale.Contains(<span class="stringliteral">&quot;Y&quot;</span>))</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  { <span class="comment">// NOTE: cannot set y log scale if min value is 0</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">auto</span> maxbin = hist-&gt;GetMaximumBin();</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    hist-&gt;GetYaxis()-&gt;SetRangeUser(0.,</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                                   hist-&gt;GetBinContent(maxbin) + 1.5 * hist-&gt;GetBinErrorUp(maxbin));</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  }</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">Hist::SetAxisTitles</a>(hist, branchX, Form(<span class="stringliteral">&quot;count / %g&quot;</span>, hist-&gt;GetBinWidth(1)));</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="comment">// * Save and return histogram * //</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <span class="keywordflow">if</span>(save) <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">Draw::SaveCanvas</a>(Form(<span class="stringliteral">&quot;%s/%s&quot;</span>, fChain.GetName(), branchX), gPad, logScale);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  <span class="keywordflow">return</span> hist;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classChainLoader.html#ac1acf45cd8d97343259edcb821763972">   85</a></span>&#160;TH1* <a class="code" href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">ChainLoader::Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* varexp, <span class="keyword">const</span> <span class="keywordtype">char</span>* cut, Option_t* option, <span class="keyword">const</span> <span class="keywordtype">bool</span> save,</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                       <span class="keyword">const</span> TString&amp; logScale)</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;{</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="keywordflow">if</span>(!fChain.GetEntries()) <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  TString varExp{varexp};</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  TString outputName{varExp};</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  TString histName{varExp};</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  <span class="keywordflow">if</span>(varExp.Contains(<span class="stringliteral">&quot;&gt;&gt;&quot;</span>))</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  {</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keyword">auto</span> firstPipe = outputName.First(<span class="charliteral">&#39;&gt;&#39;</span>);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    outputName.Resize(firstPipe);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    histName.Remove(0, firstPipe + 2);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    histName.Strip(TString::kBoth, <span class="charliteral">&#39; &#39;</span>);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  }</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  <span class="keywordflow">else</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  {</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    TTimeStamp stamp;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    histName = Form(<span class="stringliteral">&quot;hist_%d&quot;</span>, stamp.GetNanoSec());</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    varExp += Form(<span class="stringliteral">&quot;&gt;&gt;%s&quot;</span>, histName.Data());</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  }</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  fChain.Draw(varExp.Data(), cut, option);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="keyword">auto</span> hist = <span class="keyword">dynamic_cast&lt;</span>TH1*<span class="keyword">&gt;</span>(gDirectory-&gt;Get(histName.Data()));</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keywordflow">if</span>(save) <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">Draw::SaveCanvas</a>(Form(<span class="stringliteral">&quot;%s/%s&quot;</span>, fChain.GetName(), outputName.Data()), gPad, logScale);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="keywordflow">return</span> hist;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;}</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">  129</a></span>&#160;TH2F* <a class="code" href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">ChainLoader::Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* branchX, <span class="keyword">const</span> <span class="keywordtype">char</span>* branchY, <span class="keyword">const</span> Int_t nBinx,</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                        <span class="keyword">const</span> <span class="keywordtype">double</span> x1, <span class="keyword">const</span> <span class="keywordtype">double</span> x2, <span class="keyword">const</span> Int_t nBiny, <span class="keyword">const</span> <span class="keywordtype">double</span> y1,</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                        <span class="keyword">const</span> <span class="keywordtype">double</span> y2, Option_t* option, <span class="keyword">const</span> <span class="keywordtype">bool</span> save, <span class="keyword">const</span> TString&amp; logScale,</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                        <span class="keyword">const</span> <span class="keywordtype">char</span>* cut)</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="comment">// * Draw histogram * //</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">char</span>* histName = Form(<span class="stringliteral">&quot;hist_%s_%s&quot;</span>, branchX, branchY);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  Draw(</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    Form(<span class="stringliteral">&quot;%s:%s&gt;&gt;%s(%i,%f,%f,%i,%f,%f)&quot;</span>, branchX, branchY, histName, nBinx, x1, x2, nBiny, y1, y2),</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    cut, option, save, logScale);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <span class="comment">// * Modify histogram * //</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  TH2F* hist = (TH2F*)gDirectory-&gt;Get(histName);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  hist-&gt;SetTitle(Form(<span class="stringliteral">&quot;\&quot;%s\&quot; tree: #it{%s} vs #it{%s}&quot;</span>, fChain.GetName(), branchX, branchY));</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">Hist::SetAxisTitles</a>(</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    hist, branchX, branchY,</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    Form(<span class="stringliteral">&quot;count / (%gx%g)&quot;</span>, hist-&gt;GetXaxis()-&gt;GetBinWidth(1), hist-&gt;GetYaxis()-&gt;GetBinWidth(1)));</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  <span class="comment">// * Save and return histogram * //</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  <span class="keywordflow">if</span>(save) <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">Draw::SaveCanvas</a>(Form(<span class="stringliteral">&quot;%s/%s:%s&quot;</span>, fChain.GetName(), branchY, branchX), gPad, logScale);</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  <span class="keywordflow">return</span> hist;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classChainLoader.html#afb5e303555e552948b1a00a0e51d6ac7">  151</a></span>&#160;TH1* <a class="code" href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">ChainLoader::Draw</a>(<span class="keyword">const</span> <a class="code" href="classBranchPlotOptions.html">BranchPlotOptions</a>&amp; options)</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;{</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  <span class="keywordflow">if</span>(!fChain.GetEntries())</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;  {</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a8751ac933668364ed8a9194561a2d649">TerminalIO::PrintWarning</a>(Form(<span class="stringliteral">&quot;Chain \&quot;%s\&quot; has no entries&quot;</span>, fChain.GetName()));</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  }</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  fChain.Draw(options.<a class="code" href="classBranchPlotOptions.html#ad136980a173c7fb5b82ff8f8de4a58fa">VarExp</a>(), options.<a class="code" href="classBranchPlotOptions.html#aced5bf5f8b3bdfe2a14bb320eb80ae90">CutSelection</a>(), options.<a class="code" href="classBranchPlotOptions.html#ad2c05a9777f5f88d7d5ba22b16db499f">DrawOption</a>());</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  <span class="keyword">auto</span> hist = <span class="keyword">dynamic_cast&lt;</span>TH1*<span class="keyword">&gt;</span>(gDirectory-&gt;Get(options.<a class="code" href="classBranchPlotOptions.html#a2935a860aa3a1224d53d9940ef03d824">BuildHistName</a>().c_str()));</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  <span class="keywordflow">if</span>(!hist) <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  options.<a class="code" href="classBranchPlotOptions.html#a98e634ddcf3e89ec0e7a551571554894">SetAxisLabels</a>(hist);</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  options.<a class="code" href="classBranchPlotOptions.html#aa90ba931e2fe5059ddc366eec34e9b79">SetPlotLabel</a>(hist);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;  <span class="keywordflow">if</span>(options.<a class="code" href="classBranchPlotOptions.html#ae5ec8516a64ede2fee8c2d36c1e96fa8">IsWrite</a>())</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">Draw::SaveCanvas</a>(Form(<span class="stringliteral">&quot;%s/%s&quot;</span>, fChain.GetName(), options.<a class="code" href="classBranchPlotOptions.html#a498ab708e3c66d9b39b93d242b741c10">OutputFileName</a>()), gPad,</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                     options.<a class="code" href="classBranchPlotOptions.html#a70dbddf012d7fd8b0cff39b4452e1dcf">LogXYZ</a>());</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  <span class="keywordflow">return</span> hist;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;}</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classChainLoader.html#ad8ea802e6ea9b620927c40caf0e9660a">  171</a></span>&#160;TH1* <a class="code" href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">ChainLoader::Draw</a>(<span class="keyword">const</span> YAML::Node&amp; input, <span class="keyword">const</span> <span class="keywordtype">char</span>* treename)</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;{</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  <span class="keywordflow">if</span>(!input) <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  <a class="code" href="classBranchPlotOptions.html">BranchPlotOptions</a> options(input);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  options.<a class="code" href="classBranchPlotOptions.html#a8d538a134547ccdc195ecb785c8babd8">SetTreeName</a>(treename);</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  <span class="keywordflow">return</span> Draw(options);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;}</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classChainLoader.html#abc9762fc07c51196df16f437342a13ef">  180</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classChainLoader.html#abc9762fc07c51196df16f437342a13ef">ChainLoader::DrawAndSaveAllBranches</a>(Option_t* option, <span class="keyword">const</span> TString&amp; logScale)</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;{</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <span class="keywordflow">if</span>(!fChain.GetNtrees()) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  TIter    next(fChain.GetListOfBranches());</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  TObject* obj = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  <span class="keywordflow">while</span>((obj = next()))</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    Draw(obj-&gt;GetName(), <span class="stringliteral">&quot;&quot;</span>, option, <span class="keyword">true</span>, logScale);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;}</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classChainLoader.html#ab4a1067ee3302766465f85dfbe164828">  192</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classChainLoader.html#ab4a1067ee3302766465f85dfbe164828">ChainLoader::DrawAndSaveAllMultiplicityBranches</a>(<span class="keyword">const</span> TString&amp; logScale, Option_t* option)</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;{</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  <span class="keywordflow">if</span>(!fChain.GetNtrees()) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;  TString name(fChain.GetName());</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  <span class="keywordflow">if</span>(!name.BeginsWith(<span class="stringliteral">&quot;mult&quot;</span>)) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;  TIter    next(fChain.GetListOfBranches());</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  TObject* obj = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;  <span class="keywordflow">while</span>((obj = next()))</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  {</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* name = obj-&gt;GetName();</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="keywordtype">int</span>         max  = fChain.GetMaximum(name);</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordflow">if</span>(!max) <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    Draw(name, max, 0, max, option, <span class="keyword">true</span>, logScale);</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;  }</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;}</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="classChainLoader.html#af3992a50b1c97a5e7fb4fa979ebad130">  209</a></span>&#160;TH1F* <a class="code" href="classChainLoader.html#a455f1ea9db50bd5f2fa917d61b86e698">ChainLoader::GetInvariantMassHistogram</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*                  varexp,</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                                             <span class="keyword">const</span> <a class="code" href="classReconstructedParticle.html">ReconstructedParticle</a>&amp; particle, <span class="keyword">const</span> <span class="keywordtype">int</span> nBins,</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                                             Option_t* option, <span class="keyword">const</span> TString&amp; logScale)</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;{</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;  <span class="comment">// * Check input arguments * //</span></div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  <span class="keywordflow">if</span>(*varexp != <span class="charliteral">&#39;m&#39;</span>)</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  {</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;ERROR: varexp \&quot;&quot;</span> &lt;&lt; varexp &lt;&lt; <span class="stringliteral">&quot;\&quot; does not start with &#39;m&#39;&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;  }</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;  <span class="comment">// * Get histogram and modify</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;  <span class="keyword">auto</span> hist =</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    Draw(varexp, nBins, particle.<a class="code" href="classReconstructedParticle.html#aa755cc4e124a7355b30a7b8fc7eddafb">PlotFrom</a>(), particle.<a class="code" href="classReconstructedParticle.html#ae4b4ace00839a865ae3a610e89589a67">PlotUntil</a>(), option, <span class="keyword">false</span>, logScale);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;  hist-&gt;SetTitle(Form(<span class="stringliteral">&quot;Invariant mass for %s candidate&quot;</span>, particle.<a class="code" href="classParticle.html#a277d1d1b4dfb9f52534fd47ddd204cf7">NameLaTeX</a>()));</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">Hist::SetAxisTitles</a>(hist, Form(<span class="stringliteral">&quot;#it{M}_{%s} (GeV/#it{c}^{2})&quot;</span>, particle.<a class="code" href="classReconstructedParticle.html#adc13b67310f6b9db9c819a9024f58f20">DaughterLabel</a>()),</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                      Form(<span class="stringliteral">&quot;count / %g&quot;</span>, hist-&gt;GetYaxis()-&gt;GetBinWidth(1)));</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;  <span class="keywordflow">return</span> hist;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classChainLoader.html#a455f1ea9db50bd5f2fa917d61b86e698">  229</a></span>&#160;TH1F* <a class="code" href="classChainLoader.html#a455f1ea9db50bd5f2fa917d61b86e698">ChainLoader::GetInvariantMassHistogram</a>(<span class="keyword">const</span> <a class="code" href="classBranchPlotOptions.html">BranchPlotOptions</a>&amp;     branch,</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                                             <span class="keyword">const</span> <a class="code" href="classReconstructedParticle.html">ReconstructedParticle</a>&amp; particle)</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;{</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;  <span class="keywordflow">if</span>(!branch.<a class="code" href="classBranchPlotOptions.html#a23a50fd16277d30ac7dcfc945d8b4d57">IsOK</a>()) <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;  <span class="keywordflow">if</span>(branch.<a class="code" href="classBranchPlotOptions.html#af18de1160cc7e7b168f2c48be1a58a39">GetNBranches</a>() != 1)</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  {</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a8751ac933668364ed8a9194561a2d649">TerminalIO::PrintWarning</a>(Form(<span class="stringliteral">&quot;Cannot get an invariant mass plot for BranchPlotOptions &quot;</span></div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                                  <span class="stringliteral">&quot;object\n  \&quot;%s\&quot;\nbecause it has %u branches&quot;</span>,</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                                  branch.<a class="code" href="classBranchPlotOptions.html#ad136980a173c7fb5b82ff8f8de4a58fa">VarExp</a>(), branch.<a class="code" href="classBranchPlotOptions.html#af18de1160cc7e7b168f2c48be1a58a39">GetNBranches</a>()));</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;  }</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;  <span class="comment">// * Check input arguments * //</span></div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  <span class="keywordflow">if</span>(*branch.<a class="code" href="classBranchPlotOptions.html#ad136980a173c7fb5b82ff8f8de4a58fa">VarExp</a>() != <span class="charliteral">&#39;m&#39;</span>)</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  {</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;ERROR: varexp \&quot;&quot;</span> &lt;&lt; branch.<a class="code" href="classBranchPlotOptions.html#ad136980a173c7fb5b82ff8f8de4a58fa">VarExp</a>() &lt;&lt; <span class="stringliteral">&quot;\&quot; does not start with &#39;m&#39;&quot;</span> &lt;&lt; endl;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  }</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  <span class="comment">// * Get histogram and modify</span></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  <span class="keyword">auto</span> hist = <span class="keyword">dynamic_cast&lt;</span>TH1F*<span class="keyword">&gt;</span>(Draw(branch));</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;  gPad-&gt;SetLogx(branch.<a class="code" href="classBranchPlotOptions.html#a49e524da2adf397241766185f5cc40de">LogX</a>());</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;  gPad-&gt;SetLogy(branch.<a class="code" href="classBranchPlotOptions.html#ac92f042d7a128056cd9dffcef8f2afa7">LogY</a>());</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;  gPad-&gt;SetLogz(branch.<a class="code" href="classBranchPlotOptions.html#af9b4b42b95f54a5a7611a7d584eec939">LogZ</a>());</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;  hist-&gt;SetTitle(Form(<span class="stringliteral">&quot;Invariant mass for %s candidate&quot;</span>, particle.<a class="code" href="classParticle.html#a277d1d1b4dfb9f52534fd47ddd204cf7">NameLaTeX</a>()));</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">Hist::SetAxisTitles</a>(hist, Form(<span class="stringliteral">&quot;#it{M}_{%s} (GeV/#it{c}^{2})&quot;</span>, particle.<a class="code" href="classReconstructedParticle.html#adc13b67310f6b9db9c819a9024f58f20">DaughterLabel</a>()),</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                      Form(<span class="stringliteral">&quot;count / %g&quot;</span>, hist-&gt;GetYaxis()-&gt;GetBinWidth(1)));</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;  <span class="keywordflow">return</span> hist;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;}</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="classChainLoader.html#a46459e0c486f47ee2a2b9726fd2240ba">  258</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="classChainLoader.html#a46459e0c486f47ee2a2b9726fd2240ba">ChainLoader::ComputeMean</a>(TChain* chain, <span class="keyword">const</span> <span class="keywordtype">char</span>* branchName)</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;{</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;  <span class="keywordflow">if</span>(!chain) <span class="keywordflow">return</span> -1e6;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;  chain-&gt;Draw(branchName);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;  TH1F* htemp = (TH1F*)gPad-&gt;GetPrimitive(<span class="stringliteral">&quot;htemp&quot;</span>);</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  <span class="keywordflow">if</span>(!htemp) <span class="keywordflow">return</span> -1e6;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;  <span class="keywordtype">double</span> mean = htemp-&gt;GetMean();</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;  <span class="keyword">delete</span> htemp;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;  <span class="keywordflow">return</span> mean;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;}</div><div class="ttc" id="classReconstructedParticle_html"><div class="ttname"><a href="classReconstructedParticle.html">ReconstructedParticle</a></div><div class="ttdoc">Extended data container of a reconstructed particle. </div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00023">ReconstructedParticle.h:23</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_aced5bf5f8b3bdfe2a14bb320eb80ae90"><div class="ttname"><a href="classBranchPlotOptions.html#aced5bf5f8b3bdfe2a14bb320eb80ae90">BranchPlotOptions::CutSelection</a></div><div class="ttdeci">const char * CutSelection() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00053">BranchPlotOptions.h:53</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1TerminalIO_html_a8751ac933668364ed8a9194561a2d649"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a8751ac933668364ed8a9194561a2d649">BOSS_Afterburner::TerminalIO::PrintWarning</a></div><div class="ttdeci">void PrintWarning(const TString &amp;message)</div><div class="ttdoc">Print a warning message in yellow. </div><div class="ttdef"><b>Definition:</b> <a href="TerminalIO_8cxx_source.html#l00034">TerminalIO.cxx:34</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_ac92f042d7a128056cd9dffcef8f2afa7"><div class="ttname"><a href="classBranchPlotOptions.html#ac92f042d7a128056cd9dffcef8f2afa7">BranchPlotOptions::LogY</a></div><div class="ttdeci">bool LogY() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00056">BranchPlotOptions.h:56</a></div></div>
<div class="ttc" id="Draw_8h_html"><div class="ttname"><a href="Draw_8h.html">Draw.h</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_af9b4b42b95f54a5a7611a7d584eec939"><div class="ttname"><a href="classBranchPlotOptions.html#af9b4b42b95f54a5a7611a7d584eec939">BranchPlotOptions::LogZ</a></div><div class="ttdeci">bool LogZ() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00057">BranchPlotOptions.h:57</a></div></div>
<div class="ttc" id="classChainLoader_html_a8831d77ec57d390d0a3a0eec23b56c4a"><div class="ttname"><a href="classChainLoader.html#a8831d77ec57d390d0a3a0eec23b56c4a">ChainLoader::Draw</a></div><div class="ttdeci">TH2F * Draw(const char *branchX, const char *branchY, const Int_t nBinx, const double x1, const double x2, const Int_t nBiny, const double y1, const double y2, Option_t *option=&quot;&quot;, const bool save=true, const TString &amp;logScale=&quot;&quot;, const char *cut=&quot;&quot;)</div><div class="ttdoc">Draw a distribution of one of the branches in the file. </div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8cxx_source.html#l00129">ChainLoader.cxx:129</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a70dbddf012d7fd8b0cff39b4452e1dcf"><div class="ttname"><a href="classBranchPlotOptions.html#a70dbddf012d7fd8b0cff39b4452e1dcf">BranchPlotOptions::LogXYZ</a></div><div class="ttdeci">std::string LogXYZ() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00275">BranchPlotOptions.cxx:275</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_ae5ec8516a64ede2fee8c2d36c1e96fa8"><div class="ttname"><a href="classBranchPlotOptions.html#ae5ec8516a64ede2fee8c2d36c1e96fa8">BranchPlotOptions::IsWrite</a></div><div class="ttdeci">bool IsWrite() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00027">BranchPlotOptions.h:27</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a98e634ddcf3e89ec0e7a551571554894"><div class="ttname"><a href="classBranchPlotOptions.html#a98e634ddcf3e89ec0e7a551571554894">BranchPlotOptions::SetAxisLabels</a></div><div class="ttdeci">void SetAxisLabels(TH1 *hist) const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00208">BranchPlotOptions.cxx:208</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a23a50fd16277d30ac7dcfc945d8b4d57"><div class="ttname"><a href="classBranchPlotOptions.html#a23a50fd16277d30ac7dcfc945d8b4d57">BranchPlotOptions::IsOK</a></div><div class="ttdeci">bool IsOK() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00270">BranchPlotOptions.cxx:270</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a8d538a134547ccdc195ecb785c8babd8"><div class="ttname"><a href="classBranchPlotOptions.html#a8d538a134547ccdc195ecb785c8babd8">BranchPlotOptions::SetTreeName</a></div><div class="ttdeci">void SetTreeName(const TString &amp;treename)</div><div class="ttdoc">Set name of the TTree and the output file name. </div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00183">BranchPlotOptions.cxx:183</a></div></div>
<div class="ttc" id="classReconstructedParticle_html_ae4b4ace00839a865ae3a610e89589a67"><div class="ttname"><a href="classReconstructedParticle.html#ae4b4ace00839a865ae3a610e89589a67">ReconstructedParticle::PlotUntil</a></div><div class="ttdeci">const Double_t PlotUntil() const</div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00080">ReconstructedParticle.h:80</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_adee26ab251a1f534e7dfcfa01bce0bd1"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">BOSS_Afterburner::Draw::SaveCanvas</a></div><div class="ttdeci">void SaveCanvas(const char *saveas, TVirtualPad *pad=gPad, TString logScale=&quot;&quot;)</div><div class="ttdoc">Helper function that allows you to save a TPad or TCanvas. </div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00039">Draw.cxx:39</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_html"><div class="ttname"><a href="namespaceBOSS__Afterburner.html">BOSS_Afterburner</a></div><div class="ttdoc">Header with a namespace Settings that contains all settings for the analysis framework. </div><div class="ttdef"><b>Definition:</b> <a href="Draw_8h_source.html#l00017">Draw.h:17</a></div></div>
<div class="ttc" id="ChainLoader_8h_html"><div class="ttname"><a href="ChainLoader_8h.html">ChainLoader.h</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_af18de1160cc7e7b168f2c48be1a58a39"><div class="ttname"><a href="classBranchPlotOptions.html#af18de1160cc7e7b168f2c48be1a58a39">BranchPlotOptions::GetNBranches</a></div><div class="ttdeci">const size_t GetNBranches() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00044">BranchPlotOptions.h:44</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_ad136980a173c7fb5b82ff8f8de4a58fa"><div class="ttname"><a href="classBranchPlotOptions.html#ad136980a173c7fb5b82ff8f8de4a58fa">BranchPlotOptions::VarExp</a></div><div class="ttdeci">const char * VarExp() const</div><div class="ttdoc">Build a varexp that is required by the TTree::Draw method from the contents of f. ...</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00290">BranchPlotOptions.cxx:290</a></div></div>
<div class="ttc" id="Settings_8h_html"><div class="ttname"><a href="Settings_8h.html">Settings.h</a></div></div>
<div class="ttc" id="Hist_8h_html"><div class="ttname"><a href="Hist_8h.html">Hist.h</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html"><div class="ttname"><a href="classBranchPlotOptions.html">BranchPlotOptions</a></div><div class="ttdoc">This object is used as a container of information you need to plot a branch or a collection of branch...</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00019">BranchPlotOptions.h:19</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a2935a860aa3a1224d53d9940ef03d824"><div class="ttname"><a href="classBranchPlotOptions.html#a2935a860aa3a1224d53d9940ef03d824">BranchPlotOptions::BuildHistName</a></div><div class="ttdeci">std::string BuildHistName() const</div><div class="ttdoc">Build the a unique name for an output histogram. </div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00353">BranchPlotOptions.cxx:353</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_aa90ba931e2fe5059ddc366eec34e9b79"><div class="ttname"><a href="classBranchPlotOptions.html#aa90ba931e2fe5059ddc366eec34e9b79">BranchPlotOptions::SetPlotLabel</a></div><div class="ttdeci">void SetPlotLabel(TH1 *hist) const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8cxx_source.html#l00229">BranchPlotOptions.cxx:229</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Hist_html_af68da061498f2040de2c89aac7e53441"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">BOSS_Afterburner::Hist::SetAxisTitles</a></div><div class="ttdeci">void SetAxisTitles(TH1 *hist, const char *xAxis, const char *yAxis=nullptr, const char *zAxis=nullptr, bool update=true)</div><div class="ttdef"><b>Definition:</b> <a href="Hist_8cxx_source.html#l00016">Hist.cxx:16</a></div></div>
<div class="ttc" id="classReconstructedParticle_html_aa755cc4e124a7355b30a7b8fc7eddafb"><div class="ttname"><a href="classReconstructedParticle.html#aa755cc4e124a7355b30a7b8fc7eddafb">ReconstructedParticle::PlotFrom</a></div><div class="ttdeci">const Double_t PlotFrom() const</div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00079">ReconstructedParticle.h:79</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_ad2c05a9777f5f88d7d5ba22b16db499f"><div class="ttname"><a href="classBranchPlotOptions.html#ad2c05a9777f5f88d7d5ba22b16db499f">BranchPlotOptions::DrawOption</a></div><div class="ttdeci">const char * DrawOption() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00054">BranchPlotOptions.h:54</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a498ab708e3c66d9b39b93d242b741c10"><div class="ttname"><a href="classBranchPlotOptions.html#a498ab708e3c66d9b39b93d242b741c10">BranchPlotOptions::OutputFileName</a></div><div class="ttdeci">const char * OutputFileName() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00050">BranchPlotOptions.h:50</a></div></div>
<div class="ttc" id="classChainLoader_html_ab4a1067ee3302766465f85dfbe164828"><div class="ttname"><a href="classChainLoader.html#ab4a1067ee3302766465f85dfbe164828">ChainLoader::DrawAndSaveAllMultiplicityBranches</a></div><div class="ttdeci">void DrawAndSaveAllMultiplicityBranches(const TString &amp;logScale=&quot;&quot;, Option_t *option=&quot;E1&quot;)</div><div class="ttdoc">Draw the distributions of all branches of the underlying TChain if its name starts with &quot;mult&quot;...</div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8cxx_source.html#l00192">ChainLoader.cxx:192</a></div></div>
<div class="ttc" id="classChainLoader_html_a46459e0c486f47ee2a2b9726fd2240ba"><div class="ttname"><a href="classChainLoader.html#a46459e0c486f47ee2a2b9726fd2240ba">ChainLoader::ComputeMean</a></div><div class="ttdeci">double ComputeMean(TChain *tree, const char *varexp)</div><div class="ttdoc">Compute mean value of a branch in the TChain. </div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8cxx_source.html#l00258">ChainLoader.cxx:258</a></div></div>
<div class="ttc" id="classReconstructedParticle_html_adc13b67310f6b9db9c819a9024f58f20"><div class="ttname"><a href="classReconstructedParticle.html#adc13b67310f6b9db9c819a9024f58f20">ReconstructedParticle::DaughterLabel</a></div><div class="ttdeci">const Char_t * DaughterLabel() const</div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00069">ReconstructedParticle.h:69</a></div></div>
<div class="ttc" id="classChainLoader_html_ad93ba90c4a626e758b98a29f4729bf70"><div class="ttname"><a href="classChainLoader.html#ad93ba90c4a626e758b98a29f4729bf70">ChainLoader::BookAddresses</a></div><div class="ttdeci">void BookAddresses(bool print_branches=false, bool print_averages=false)</div><div class="ttdoc">Automatically book addresses for all branches of the underlying TChain. The branches are accessible b...</div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8cxx_source.html#l00013">ChainLoader.cxx:13</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html_a49e524da2adf397241766185f5cc40de"><div class="ttname"><a href="classBranchPlotOptions.html#a49e524da2adf397241766185f5cc40de">BranchPlotOptions::LogX</a></div><div class="ttdeci">bool LogX() const</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00055">BranchPlotOptions.h:55</a></div></div>
<div class="ttc" id="classChainLoader_html_abc9762fc07c51196df16f437342a13ef"><div class="ttname"><a href="classChainLoader.html#abc9762fc07c51196df16f437342a13ef">ChainLoader::DrawAndSaveAllBranches</a></div><div class="ttdeci">void DrawAndSaveAllBranches(Option_t *option=&quot;&quot;, const TString &amp;logScale=&quot;&quot;)</div><div class="ttdoc">Draw the distributions of all branches of the underlying TChain. </div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8cxx_source.html#l00180">ChainLoader.cxx:180</a></div></div>
<div class="ttc" id="classParticle_html_a277d1d1b4dfb9f52534fd47ddd204cf7"><div class="ttname"><a href="classParticle.html#a277d1d1b4dfb9f52534fd47ddd204cf7">Particle::NameLaTeX</a></div><div class="ttdeci">const char * NameLaTeX() const</div><div class="ttdef"><b>Definition:</b> <a href="Particle_8cxx_source.html#l00065">Particle.cxx:65</a></div></div>
<div class="ttc" id="classChainLoader_html_a455f1ea9db50bd5f2fa917d61b86e698"><div class="ttname"><a href="classChainLoader.html#a455f1ea9db50bd5f2fa917d61b86e698">ChainLoader::GetInvariantMassHistogram</a></div><div class="ttdeci">TH1F * GetInvariantMassHistogram(const BranchPlotOptions &amp;branch, const ReconstructedParticle &amp;particle)</div><div class="ttdoc">Create a histogram object based on a BranchPlotOptions and ReconstructedParticle object. </div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8cxx_source.html#l00229">ChainLoader.cxx:229</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b9b4f4b00250c6904394903cddfd42b1.html">File</a></li><li class="navelem"><a class="el" href="ChainLoader_8cxx.html">ChainLoader.cxx</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
